<template>
	<view class="description">
		<view class="user u-flex u-col-center u-row-between">
			<view class="avatar">
				<u-avatar size="100"></u-avatar>
			</view>
			<view class="info u-flex-col">
				<text class="name">{{item.user_text}}</text>
				<text class="time">{{item.createtime|timeFormat}} 发布</text>
			</view>
		</view>
		<view class="content">
			<text>{{item.description}}</text>
		</view>
	</view>
</template>

<script>
	export default {
		props:{
			item: {
				type: Object,
				default: {}
			}
		}
	}
</script>

<style lang="scss" scoped>
	.description{
		background-color: $uni-bg-color;
	}
	.user{
		height: 173upx;
		width: 340upx;
		padding-left: $uni-spacing-row-base;
		.info{
			.name{
				font-size: $uni-font-size-subtitle;
				font-weight: bold;
			}
			.time{
				color: $uni-text-color-grey;
				font-size: $uni-font-size-sm;
			}
		}
	}
	.content{
		padding: $uni-spacing-col-base $uni-spacing-row-base;
	}
</style>
